copy From Realm
Makes an unmanaged in-memory copy of an already persisted io.realm.kotlin.types.RealmObject. This is a deep copy that will copy all referenced objects.
Parameters
managed object to copy from the Realm.
limit of the deep copy. All object references after this depth will be null. RealmLists and RealmSets containing objects will be empty. Starting depth is 0.
Throws
if obj is not a valid object to copy.
Makes an unmanaged in-memory copy of a collection of already persisted io.realm.kotlin.types.RealmObjects. This is a deep copy that will copy all referenced objects.
Parameters
limit of the deep copy. All object references after this depth will be null. RealmLists and RealmSets containing objects will be empty. Starting depth is 0.
Throws
if the collection is not valid or contains objects that are not valid to copy.